#include<iostream>
using namespace std;
int main()
{
	int a, b, n;
	cin >> a >> b >> n;
	int t = 0;
	for (int i = 0; i < n; i++) {
		a = a % b;
		a *= 10;
	}
	cout << a / b << endl;
	return 0;
}